package com.itheima.domain.db;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

//问卷信息
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TestSoul implements Serializable {
    private Long id      ;//'问卷编号',
    private String name    ;//'问卷名称',
    private String cover   ;//
    private String level   ;//'级别',
    private Integer star   ;// '星别（例如：2颗星，3颗星，5颗星）',

    @TableField(fill = FieldFill.INSERT)
    private Date created   ;//'创建时间',
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated   ;// '更新时间'
    @TableField(exist = false)
    private List<TestSoulQuestion> questions;

}
